package com.yike.user.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.yike.common.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.yike.common.api.Update;

/**
 * 代理商提现申请表
 *
 * @author Sakura
 * @since 2024-09-23
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("qy_agent_withdrawal_apply")
@ApiModel(value = "AgentWithdrawalApply对象")
public class AgentWithdrawalApply extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "代理商id不能为空")
    @ApiModelProperty("代理商id")
    private Long agentId;

    @ApiModelProperty("类型：1支付宝提现")
    private Integer type;

    @ApiModelProperty("账号")
    private String account;

    @ApiModelProperty("用户姓名（真实）")
    private String userName;

    @ApiModelProperty("提现金额")
    private BigDecimal amount;

    @ApiModelProperty("实际提现金额")
    private BigDecimal realityAmount;

    @ApiModelProperty("剩余提现金额")
    private BigDecimal residueAmount;

    @ApiModelProperty("手续费")
    private BigDecimal commissionAmount;

    @ApiModelProperty("备注")
    private String remark;

    @NotNull(message = "状态：0待审核 1通过 2不通过 3已提现不能为空")
    @ApiModelProperty("状态：0待审核 1通过 2不通过 3已提现")
    private Integer status;

    @ApiModelProperty("异常备注")
    private String errorRemark;

}
